Skip to content

[FLINK-38262][table] describe connection operation - #28792

Open
Shekharrajak wants to merge 1 commit into
apache:masterfrom
Shekharrajak:FLINK-38262-describe-connection-operation
Open

[FLINK-38262][table] describe connection operation#28792
Shekharrajak wants to merge 1 commit into
apache:masterfrom
Shekharrajak:FLINK-38262-describe-connection-operation

Conversation

@Shekharrajak

@Shekharrajak Shekharrajak commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

What is the purpose of the change

Adds DescribeConnectionOperation and converter support for DESCRIBE CONNECTION, with masked sensitive values and extended metadata.

Brief change log

Add DESCRIBE CONNECTION operation

Verifying this change

Unit tests and IT

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no) no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no) no
  • The serializers: (yes / no / don't know) no
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
  • The S3 file system connector: (yes / no / don't know) no

Documentation

  • Does this pull request introduce a new feature? (yes / no) yes
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

Was generative AI tooling used to co-author this PR?
  • Yes

@flinkbot

flinkbot commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@Shekharrajak
Shekharrajak force-pushed the FLINK-38262-describe-connection-operation branch from 8372d33 to 805f418 Compare July 21, 2026 17:20

@snuyanzin snuyanzin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not ignore Contributors form

@Internal
public class DescribeConnectionOperation implements Operation, ExecutableOperation {

private static final String CONNECTION_SECRET_REFERENCE_KEY = "__flink.encrypted-secret-key__";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You defined this also in the ShowCreateUtil in this PR: https://github.com/apache/flink/pull/28791/changes we should try to re-use it as much as we can

Comment on lines +126 to +150
@Test
void testDescribeConnection() {
Operation operation = parse("DESCRIBE CONNECTION my_conn");
assertThat(operation).isInstanceOf(DescribeConnectionOperation.class);
DescribeConnectionOperation op = (DescribeConnectionOperation) operation;

assertThat(op.getConnectionIdentifier())
.isEqualTo(ObjectIdentifier.of("builtin", "default", "my_conn"));
assertThat(op.isExtended()).isFalse();
}

@Test
void testDescribeConnectionExtended() {
Operation operation = parse("DESC CONNECTION EXTENDED my_conn");
DescribeConnectionOperation op = (DescribeConnectionOperation) operation;
assertThat(op.isExtended()).isTrue();
}

@Test
void testDescribeConnectionWithFullyQualifiedName() {
Operation operation = parse("DESCRIBE CONNECTION cat1.db1.my_conn");
DescribeConnectionOperation op = (DescribeConnectionOperation) operation;
assertThat(op.getConnectionIdentifier())
.isEqualTo(ObjectIdentifier.of("cat1", "db1", "my_conn"));
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be also parametized

@raminqaf raminqaf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution left some comments

@github-actions github-actions Bot added the community-reviewed PR has been reviewed by the community. label Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-reviewed PR has been reviewed by the community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants